<!DOCTYPE html>
<html>
<head>
  <title>jQuery 示例2 - 多倍点击次数 </title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2 class="text-muted"> jQuery 示例2 - 多倍点击次数 </h2>
  <div class="container">
  	<label id="practice" class="text-success"></label> 
  </div>
  <div class="container">
    <label class="text-info">点击次数：</label>
    <label id="clickNumber" class="text-info" ></label>
  </div>

  <div class="container">
    <label class="text-info">2倍点击次数：</label>
    <label id="clickNumber2" class="text-info" ></label>
  </div>

  <div class="container">
    <label class="text-info">3倍点击次数：</label>
    <label id="clickNumber3" class="text-info" ></label>
  </div>
</div>

<script>
var clickCount = 0;
$(document).ready(function(){
  // 展示 默认文本
  $("#practice").html("Hello World! 文本点击计数 ");
  // 文本被点击 时计算点击数 
  $("#practice").click(function(){
    clickCount = clickCount + 1;
    $("#clickNumber").html(clickCount);
    $("#clickNumber2").html(clickCount * 2);
    $("#clickNumber3").html(clickCount * 3);
  });
});
</script>

</body>
</html>